package com.gxa.hualianeshop.controller;

import com.gxa.hualianeshop.common.base.R;
import com.gxa.hualianeshop.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bill
 * @date 2023/7/21 15:44
 */


@Api("用户的web接口")
@RestController
@RequestMapping("/user")
public class UserController {

    @Reference
    private UserService userService;


    @ApiOperation("通过id获取商品信息")
    @GetMapping("/getById")
    public R getById(Long id){

        return R.ok(userService.getById(id));
    }



}
